/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package luft27.comm.dozor;

/**
 *
 * @author amalikov
 */
public class ManualControl implements MessagePayload {
	public byte aileron;
	public byte elevator;
	public byte rudder;
	public byte throttle;
	public byte flaps;
	
	@Override
	public byte[] get() {
		return new byte[]{aileron, elevator, rudder, throttle, flaps};
	}

	@Override
	public void set(byte[] data) {
		aileron = data[0];
		elevator = data[1];
		rudder = data[2];
		throttle = data[3];
		flaps = data[4];
	}
}
